<!DOCTYPE html>
<html>
<head>
    <title>Prototype Pattern Example</title>
    <script type="text/javascript">
    
        var o = {
            toString : function(){
                return "My Object";
            }
        }

        for (var prop in o){
            if (prop == "toString"){
                alert("Found toString");
            }
        }

    </script>
</head>
<body>

</body>
</html>